package jwlee.testproxy.autoproxy;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class TestHelloWorld {
	public static void main(String[] args) {

		// 通过ApplicationContext获取XML
		//ApplicationContext actx = new ClassPathXmlApplicationContext("jwlee/testproxy/autoproxy/config.xml");
		ApplicationContext actx = new FileSystemXmlApplicationContext("src/jwlee/testproxy/autoproxy/config.xml");

		TimeBookInterface timeBookProxy = (TimeBookInterface) actx
				.getBean("timeBook");

		timeBookProxy.doAuditing("张三");
		timeBookProxy.updateAudit("李四修改");
	}
}
